<?php

echo $_SERVER["DOCUMENT_ROOT"];

echo "<br>";
echo dirname(__FILE__);
 
define('ROOT_DIR', dirname(__FILE__));
define('ROOT_URL', substr($_SERVER['PHP_SELF'], 0, - (strlen($_SERVER['SCRIPT_FILENAME']) - strlen(ROOT_DIR))));
 
echo "<br>";
 echo ROOT_DIR;
echo "<br>";
 echo ROOT_URL;
?>
